var ejs = require("ejs");
var fs = require("fs");

var path = __dirname + "/test.ejs";

var option = {
	userName: "huang",
	theme: "test",
	linkUrl: "http://baidu.com"
};

var str = fs.readFileSync(path, "utf-8");

var result = ejs.render(str, option);


console.log(result);